﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bussiness;

namespace WebApplication.Admin.Baocao
{
    public class Thu
    {
        public IQueryable<PhieuThu> GetPhieuthu(DateTime dt,string ngay)
        {
            var db = dataprovider.Entity.PHIEUTHUs;
            return db.Where(p => p.NgayThu == dt)
                .Select(p => new PhieuThu
                { 
                    mapt=p.MaPT,
                    nhanvien=p.NHANVIEN.TENNV,
                    sotien=(int)p.SoTienTra_PT,
                    noidungthu=p.NOIDUNGTHU,
                    ngay=ngay
                });
        }
        public class PhieuThu
        {
            public string mapt { get; set; }
            public string nhanvien { get; set; }
            public int sotien { get; set; }
            public string noidungthu { get; set; }
            public string ngay { get; set; }
        }
    }
}